<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员-<?php echo $GLOBAL['cfg_sitename']."-".$cfg_sysversion;?></title>
<meta property="xn:admins" content="583870616"/>
<meta property="wb:webmaster" content="ye-shi-li@qq.com">
<link href="templets/css/admin_css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="98%" height="101" border="0" cellpadding="3" cellspacing="1" class="ye">
  <tr>
    <td height="22" colspan="10" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<strong>管理</strong></font></td>
  </tr>
  <tr>
    <td width="4%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">ID</td>
    <td width="8%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">用户名</td>
    <td width="9%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">管理组</td>
    <td width="8%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">姓名</td>
    <td width="11%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">电话</td>
    <td width="6%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">登录次数</td>
    <td width="12%" align="center" valign="middle" bgcolor="#f8f8f8">最后登录时间</td>
    <td width="11%" align="center" valign="middle" bgcolor="#f8f8f8">最后登录IP</td>
    <td width="13%" height="24" align="center" valign="middle" bgcolor="#f8f8f8">添加时间</td>
    <td width="18%" align="center" valign="middle" bgcolor="#f8f8f8">操作</td>
  </tr>
  <?php
	foreach ($admin_list as $list){
  ?>
  <tr onMouseOver="this.style.background='#D7E4F7'" onMouseOut="this.style.background='#EBF2F9';"  bgcolor="#EBF2F9">
    <td width="4%" height="24" align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['id']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><a href="admin_admin_action.php?act=mod&id=<?php echo $list['id']; ?>"><?php echo $list['username']; ?></a></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo get_rankadmin($list['id']);?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['name'];?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['tel'];?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['logincount']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['logintime']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['loginip']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8"><?php echo $list['addtime']; ?></td>
    <td align="center" valign="middle" bgcolor="#f8f8f8" class="caozuo"><a href="admin_admin_action.php?act=mod&id=<?php echo $list['id']; ?>" title="修改"><img src="templets/images/edit.png" alt="修改" border="0" /></a>&nbsp;<?php
    	if($list['id'] !== '1'){
	?><a href="admin_admin_ok.php?id=<?php echo $list['id']; ?>&act=del" onClick="javascript:return confirm('确实要删除吗?')" title="删除"><img src="templets/images/del.png" alt="删除" border="0" /></a><?php }?></td>
  </tr>
  <?php
  	}
  ?>
  <tr>
    <td height="24" colspan="10" align="center" valign="middle" bgcolor="#F8FCF6"><?php page($sqlstr,$page_size,"admin_admin.php?page",$page);?></td>
  </tr>
</table>
</body>
</html>